import type { GeneratedEtsLibFile } from "../../types/generated";

export const FILE: GeneratedEtsLibFile = {
  path: 'ets/api/@ohos.hiviewdfx.hiAppEvent.d.ts',
  content: "/*\n * Copyright (c) 2022-2025 Huawei Device Co., Ltd.\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * @file\n * @kit PerformanceAnalysisKit\n */\nimport type { AsyncCallback } from './@ohos.base';\n/**\n * Provides the event logging function for applications to log the fault, statistical, security,\n * and user behavior events reported during running. Based on event information,\n * you will be able to analyze the running status of applications.\n *\n * @namespace hiAppEvent\n * @syscap SystemCapability.HiviewDFX.HiAppEvent\n * @since 9\n */\n/**\n * Provides the event logging function for applications to log the fault, statistical, security,\n * and user behavior events reported during running. Based on event information,\n * you will be able to analyze the running status of applications.\n *\n * @namespace hiAppEvent\n * @syscap SystemCapability.HiviewDFX.HiAppEvent\n * @atomicservice\n * @since 11\n */\n/**\n * Provides the event logging function for applications to log the fault, statistical, security,\n * and user behavior events reported during running. Based on event information,\n * you will be able to analyze the running status of applications.\n *\n * @namespace hiAppEvent\n * @syscap SystemCapability.HiviewDFX.HiAppEvent\n * @crossplatform\n * @atomicservice\n * @since 19\n */\ndeclare namespace hiAppEvent {\n    /**\n     * Enumerates event types.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @since 9\n     */\n    /**\n     * Enumerates event types.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Enumerates event types.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @crossplatform\n     * @atomicservice\n     * @since 19\n     */\n    enum EventType {\n        /**\n         * Fault event.\n         *\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @since 9\n         */\n        /**\n         * Fault event.\n         *\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Fault event.\n         *\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @crossplatform\n         * @atomicservice\n         * @since 19\n         */\n        FAULT = 1,\n        /**\n         * Statistic event.\n         *\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @since 9\n         */\n        /**\n         * Statistic event.\n         *\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Statistic event.\n         *\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @crossplatform\n         * @atomicservice\n         * @since 19\n         */\n        STATISTIC = 2,\n        /**\n         * Security event.\n         *\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @since 9\n         */\n        /**\n         * Security event.\n         *\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Security event.\n         *\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @crossplatform\n         * @atomicservice\n         * @since 19\n         */\n        SECURITY = 3,\n        /**\n         * Behavior event.\n         *\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @since 9\n         */\n        /**\n         * Behavior event.\n         *\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Behavior event.\n         *\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @crossplatform\n         * @atomicservice\n         * @since 19\n         */\n        BEHAVIOR = 4\n    }\n    /**\n     * Provides domain name constants.\n     *\n     * @namespace domain\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Provides domain name constants.\n     *\n     * @namespace domain\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @crossplatform\n     * @atomicservice\n     * @since 19\n     */\n    namespace domain {\n        /**\n         * System domain.\n         *\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * System domain.\n         *\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @crossplatform\n         * @atomicservice\n         * @since 19\n         */\n        const OS: string;\n    }\n    /**\n     * Provides event name constants, including system event name constants and application event name constants.\n     * <br>The application event name constants are optional custom event names reserved when you call Write for\n     * application event logging.\n     *\n     * @namespace event\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @since 9\n     */\n    /**\n     * Provides event name constants, including system event name constants and application event name constants.\n     * <br>The application event name constants are optional custom event names reserved when you call Write for\n     * application event logging.\n     *\n     * @namespace event\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Provides event name constants, including system event name constants and application event name constants.\n     * <br>The application event name constants are optional custom event names reserved when you call Write for\n     * application event logging.\n     *\n     * @namespace event\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @crossplatform\n     * @atomicservice\n     * @since 19\n     */\n    namespace event {\n        /**\n         * User login event. This is a reserved application event name constant.\n         *\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @since 9\n         */\n        /**\n         * User login event. This is a reserved application event name constant.\n         *\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 11\n         */\n        const USER_LOGIN: string;\n        /**\n         * User logout event. This is a reserved application event name constant.\n         *\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @since 9\n         */\n        /**\n         * User logout event. This is a reserved application event name constant.\n         *\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 11\n         */\n        const USER_LOGOUT: string;\n        /**\n         * Distributed service startup event. This is a reserved application event name constant.\n         *\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @since 9\n         */\n        /**\n         * Distributed service startup event. This is a reserved application event name constant.\n         *\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 11\n         */\n        const DISTRIBUTED_SERVICE_START: string;\n        /**\n         * Application crash event. This is a system event name constant.\n         *\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Application crash event. This is a system event name constant.\n         *\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @crossplatform\n         * @atomicservice\n         * @since 19\n         */\n        const APP_CRASH: string;\n        /**\n         * Application freeze event. This is a system event name constant.\n         *\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 11\n         */\n        const APP_FREEZE: string;\n        /**\n         * Event indicating the application launch duration. This is a system event name constant.\n         *\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 12\n         */\n        const APP_LAUNCH: string;\n        /**\n         * Event indicating frame loss during swiping. This is a system event name constant.\n         *\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 12\n         */\n        const SCROLL_JANK: string;\n        /**\n         * Event indicating a high CPU usage. This is a system event name constant.\n         *\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 12\n         */\n        const CPU_USAGE_HIGH: string;\n        /**\n         * Event indicating battery usage statistics. This is a system event name constant.\n         *\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 12\n         */\n        const BATTERY_USAGE: string;\n        /**\n         * Event indicating an application resource leakage. This is a system event name constant.\n         *\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 12\n         */\n        const RESOURCE_OVERLIMIT: string;\n        /**\n         * Address sanitizer event. This is a system event name constant.\n         *\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 12\n         */\n        const ADDRESS_SANITIZER: string;\n        /**\n         * Main thread jank event. This is a system event name constant.\n         *\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 12\n         */\n        const MAIN_THREAD_JANK: string;\n    }\n    /**\n     * Provides parameter name constants.\n     *\n     * @namespace param\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @since 9\n     */\n    /**\n     * Provides parameter name constants.\n     *\n     * @namespace param\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Provides parameter name constants.\n     *\n     * @namespace param\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @crossplatform\n     * @atomicservice\n     * @since 19\n     */\n    namespace param {\n        /**\n         * Custom user ID.\n         *\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @since 9\n         */\n        /**\n         * Custom user ID.\n         *\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Custom user ID.\n         *\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @crossplatform\n         * @atomicservice\n         * @since 19\n         */\n        const USER_ID: string;\n        /**\n         * Distributed service name.\n         *\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @since 9\n         */\n        /**\n         * Distributed service name.\n         *\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Distributed service name.\n         *\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @crossplatform\n         * @atomicservice\n         * @since 19\n         */\n        const DISTRIBUTED_SERVICE_NAME: string;\n        /**\n         * Distributed service instance ID.\n         *\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @since 9\n         */\n        /**\n         * Distributed service instance ID.\n         *\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Distributed service instance ID.\n         *\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @crossplatform\n         * @atomicservice\n         * @since 19\n         */\n        const DISTRIBUTED_SERVICE_INSTANCE_ID: string;\n    }\n    /**\n     * Configures the application event logging function, such as setting the logging switch and directory storage quota.\n     *\n     * @param { ConfigOption } config Configuration items for application event logging.\n     * @throws { BusinessError } 401 - Parameter error.\n     * @throws { BusinessError } 11103001 - Invalid max storage quota value.\n     * @static\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @since 9\n     */\n    /**\n     * Configures the application event logging function, such as setting the logging switch and directory storage quota.\n     *\n     * @param { ConfigOption } config Configuration items for application event logging.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types.\n     * @throws { BusinessError } 11103001 - Invalid max storage quota value.\n     * @static\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Configures the application event logging function, such as setting the logging switch and directory storage quota.\n     *\n     * @param { ConfigOption } config Configuration items for application event logging.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types.\n     * @throws { BusinessError } 11103001 - Invalid max storage quota value.\n     * @static\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @crossplatform\n     * @atomicservice\n     * @since 19\n     */\n    function configure(config: ConfigOption): void;\n    /**\n     * Provides configuration options for application event logging.\n     *\n     * @interface ConfigOption\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @since 9\n     */\n    /**\n     * Provides configuration options for application event logging.\n     *\n     * @interface ConfigOption\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Provides configuration options for application event logging.\n     *\n     * @interface ConfigOption\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @crossplatform\n     * @atomicservice\n     * @since 19\n     */\n    interface ConfigOption {\n        /**\n         * Whether to enable the event logging function. The default value is false.\n         * <br>If this parameter is set to true, the logging function is disabled. Otherwise, the logging function is\n         * enabled.\n         *\n         * @type { ?boolean }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @since 9\n         */\n        /**\n         * Whether to enable the event logging function. The default value is false.\n         * <br>If this parameter is set to true, the logging function is disabled. Otherwise, the logging function is\n         * enabled.\n         *\n         * @type { ?boolean }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Whether to enable the event logging function. The default value is false.\n         * <br>If this parameter is set to true, the logging function is disabled. Otherwise, the logging function is\n         * enabled.\n         *\n         * @type { ?boolean }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @crossplatform\n         * @atomicservice\n         * @since 19\n         */\n        disable?: boolean;\n        /**\n         * Quota for the directory that stores event logging files. The default value is 10M.\n         * <br>It is recommended that the quota be less than or equal to 10 MB. Otherwise, the API efficiency may be\n         * affected. If the directory size exceeds the specified quota when application event logging is performed, event\n         * logging files in the directory will be cleared one by one based on the generation time to ensure that directory\n         * size does not exceed the quota.\n         * <br>The quota value must meet the following requirements:\n         * <br>- The quota value consists of only digits and a unit (which can be one of [b|k|kb|m|mb|g|gb|t|tb], which are\n         * case insensitive.)\n         * <br>- The quota value must start with a digit. You can determine whether to pass the unit. If the unit is left\n         * empty, b (that is, byte) is used by default.\n         *\n         * @type { ?string }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @since 9\n         */\n        /**\n         * Quota for the directory that stores event logging files. The default value is 10M.\n         * <br>It is recommended that the quota be less than or equal to 10 MB. Otherwise, the API efficiency may be\n         * affected. If the directory size exceeds the specified quota when application event logging is performed, event\n         * logging files in the directory will be cleared one by one based on the generation time to ensure that directory\n         * size does not exceed the quota.\n         * <br>The quota value must meet the following requirements:\n         * <br>- The quota value consists of only digits and a unit (which can be one of [b|k|kb|m|mb|g|gb|t|tb], which are\n         * case insensitive.)\n         * <br>- The quota value must start with a digit. You can determine whether to pass the unit. If the unit is left\n         * empty, b (that is, byte) is used by default.\n         *\n         * @type { ?string }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 11\n         */\n        maxStorage?: string;\n    }\n    /**\n     * Defines parameters of the event information.\n     *\n     * @interface AppEventInfo\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @since 9\n     */\n    /**\n     * Defines parameters of the event information.\n     *\n     * @interface AppEventInfo\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Defines parameters of the event information.\n     *\n     * @interface AppEventInfo\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @crossplatform\n     * @atomicservice\n     * @since 19\n     */\n    interface AppEventInfo {\n        /**\n         * Event domain. The value is a string of up to 32 characters, including digits (0 to 9), letters (a to z), and\n         * underscores (_). It must start with a letter and cannot end with an underscore (_).\n         *\n         * @type { string }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @since 9\n         */\n        /**\n         * Event domain. The value is a string of up to 32 characters, including digits (0 to 9), letters (a to z), and\n         * underscores (_). It must start with a letter and cannot end with an underscore (_).\n         *\n         * @type { string }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Event domain. The value is a string of up to 32 characters, including digits (0 to 9), letters (a to z), and\n         * underscores (_). It must start with a letter and cannot end with an underscore (_).\n         *\n         * @type { string }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @crossplatform\n         * @atomicservice\n         * @since 19\n         */\n        domain: string;\n        /**\n         * Event name. The value is string that contains a maximum of 48 characters, including digits (0 to 9), letters\n         * (a to z), underscore (_), and dollar sign ($). It must start with a letter or dollar sign ($) and end with a\n         * digit or letter.\n         *\n         * @type { string }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @since 9\n         */\n        /**\n         * Event name. The value is string that contains a maximum of 48 characters, including digits (0 to 9), letters\n         * (a to z), underscore (_), and dollar sign ($). It must start with a letter or dollar sign ($) and end with a\n         * digit or letter.\n         *\n         * @type { string }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Event name. The value is string that contains a maximum of 48 characters, including digits (0 to 9), letters\n         * (a to z), underscore (_), and dollar sign ($). It must start with a letter or dollar sign ($) and end with a\n         * digit or letter.\n         *\n         * @type { string }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @crossplatform\n         * @atomicservice\n         * @since 19\n         */\n        name: string;\n        /**\n         * Event type.\n         *\n         * @type { EventType }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @since 9\n         */\n        /**\n         * Event type.\n         *\n         * @type { EventType }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Event type.\n         *\n         * @type { EventType }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @crossplatform\n         * @atomicservice\n         * @since 19\n         */\n        eventType: EventType;\n        /**\n         * Event parameter object, which consists of a parameter name and a parameter value. In system events, the fields\n         * contained in params are defined by system. For details about the fields, you can see the overviews of system\n         * events, for example, Crash Event Overview. For application events, you need to define the parameters of the\n         * Write API. The specifications are as follows:\n         * <br>- A parameter name is a string that contains a maximum of 32 characters, including digits (0 to 9), letters\n         * (a to z), underscore (_), and dollar sign ($). It must start with a letter or dollar sign ($) and end with a\n         * digit or letter. For example, testName and $123_name.\n         * <br>- The parameter value can be a string, number, boolean, or array. The string type parameter can contain a\n         * maximum of 8 x 1024 characters. If the length exceeds the limit, the parameter and its name will be discarded.\n         * The value of the number type parameter must be within the range of Number.MIN_SAFE_INTEGER to\n         * Number.MAX_SAFE_INTEGER. If the value exceeds the range, an uncertain value may be generated. The element type\n         * in the array type parameter can only be string, number, or boolean. The number of elements must be less than\n         * 100. If this limit is exceeded, excess elements will be discarded.\n         * <br>- The maximum number of parameters is 32. If this limit is exceeded, excess parameters will be discarded.\n         *\n         * @type { object }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @since 9\n         */\n        /**\n         * Event parameter object, which consists of a parameter name and a parameter value. In system events, the fields\n         * contained in params are defined by system. For details about the fields, you can see the overviews of system\n         * events, for example, Crash Event Overview. For application events, you need to define the parameters of the\n         * Write API. The specifications are as follows:\n         * <br>- A parameter name is a string that contains a maximum of 32 characters, including digits (0 to 9), letters\n         * (a to z), underscore (_), and dollar sign ($). It must start with a letter or dollar sign ($) and end with a\n         * digit or letter. For example, testName and $123_name.\n         * <br>- The parameter value can be a string, number, boolean, or array. The string type parameter can contain a\n         * maximum of 8 x 1024 characters. If the length exceeds the limit, the parameter and its name will be discarded.\n         * The value of the number type parameter must be within the range of Number.MIN_SAFE_INTEGER to\n         * Number.MAX_SAFE_INTEGER. If the value exceeds the range, an uncertain value may be generated. The element type\n         * in the array type parameter can only be string, number, or boolean. The number of elements must be less than\n         * 100. If this limit is exceeded, excess elements will be discarded.\n         * <br>- The maximum number of parameters is 32. If this limit is exceeded, excess parameters will be discarded.\n         *\n         * @type { object }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Event parameter object, which consists of a parameter name and a parameter value. In system events, the fields\n         * contained in params are defined by system. For details about the fields, you can see the overviews of system\n         * events, for example, Crash Event Overview. For application events, you need to define the parameters of the\n         * Write API. The specifications are as follows:\n         * <br>- A parameter name is a string that contains a maximum of 32 characters, including digits (0 to 9), letters\n         * (a to z), underscore (_), and dollar sign ($). It must start with a letter or dollar sign ($) and end with a\n         * digit or letter. For example, testName and $123_name.\n         * <br>- The parameter value can be a string, number, boolean, or array. The string type parameter can contain a\n         * maximum of 8 x 1024 characters. If the length exceeds the limit, the parameter and its name will be discarded.\n         * The value of the number type parameter must be within the range of Number.MIN_SAFE_INTEGER to\n         * Number.MAX_SAFE_INTEGER. If the value exceeds the range, an uncertain value may be generated. The element type\n         * in the array type parameter can only be string, number, or boolean. The number of elements must be less than\n         * 100. If this limit is exceeded, excess elements will be discarded.\n         * <br>- The maximum number of parameters is 32. If this limit is exceeded, excess parameters will be discarded.\n         *\n         * @type { object }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @crossplatform\n         * @atomicservice\n         * @since 19\n         */\n        params: object;\n    }\n    /**\n     * Writes events of the AppEventInfo type. This API uses a promise to return the result. The event object written by\n     * calling this API is a custom object. To avoid conflicts with system events, you are not advised to write it to\n     * system events (system event name constants defined in Event). The events written by this API can be subscribed to\n     * through (addWatcher).\n     *\n     * @param { AppEventInfo } Application event object. You are advised to avoid the conflict between the custom event\n     * name and the system event name constant defined in Event.\n     * @returns { Promise<void> } Promise that returns no value.\n     * @throws { BusinessError } 401 - Parameter error.\n     * @throws { BusinessError } 11100001 - Function disabled.\n     * @throws { BusinessError } 11101001 - Invalid event domain.\n     * @throws { BusinessError } 11101002 - Invalid event name.\n     * @throws { BusinessError } 11101003 - Invalid number of event parameters.\n     * @throws { BusinessError } 11101004 - Invalid string length of the event parameter.\n     * @throws { BusinessError } 11101005 - Invalid event parameter name.\n     * @throws { BusinessError } 11101006 - Invalid array length of the event parameter.\n     * @static\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @since 9\n     */\n    /**\n     * Writes events of the AppEventInfo type. This API uses a promise to return the result. The event object written by\n     * calling this API is a custom object. To avoid conflicts with system events, you are not advised to write it to\n     * system events (system event name constants defined in Event). The events written by this API can be subscribed to\n     * through (addWatcher).\n     *\n     * @param { AppEventInfo } info Application event object. You are advised to avoid the conflict between the custom\n     * event name and the system event name constant defined in Event.\n     * @returns { Promise<void> } Promise that returns no value.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types.\n     * @throws { BusinessError } 11100001 - Function disabled.\n     * @throws { BusinessError } 11101001 - Invalid event domain.\n     * @throws { BusinessError } 11101002 - Invalid event name.\n     * @throws { BusinessError } 11101003 - Invalid number of event parameters.\n     * @throws { BusinessError } 11101004 - Invalid string length of the event parameter.\n     * @throws { BusinessError } 11101005 - Invalid event parameter name.\n     * @throws { BusinessError } 11101006 - Invalid array length of the event parameter.\n     * @static\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Writes events of the AppEventInfo type. This API uses a promise to return the result. The event object written by\n     * calling this API is a custom object. To avoid conflicts with system events, you are not advised to write it to\n     * system events (system event name constants defined in Event). The events written by this API can be subscribed to\n     * through (addWatcher).\n     *\n     * @param { AppEventInfo } info Application event object. You are advised to avoid the conflict between the custom\n     * event name and the system event name constant defined in Event.\n     * @returns { Promise<void> } Promise that returns no value.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types.\n     * @throws { BusinessError } 11100001 - Function disabled.\n     * @throws { BusinessError } 11101001 - Invalid event domain.\n     * @throws { BusinessError } 11101002 - Invalid event name.\n     * @throws { BusinessError } 11101003 - Invalid number of event parameters.\n     * @throws { BusinessError } 11101004 - Invalid string length of the event parameter.\n     * @throws { BusinessError } 11101005 - Invalid event parameter name.\n     * @throws { BusinessError } 11101006 - Invalid array length of the event parameter.\n     * @static\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @crossplatform\n     * @atomicservice\n     * @since 19\n     */\n    function write(info: AppEventInfo): Promise<void>;\n    /**\n     * Writes events of the AppEventInfo type. This API uses an asynchronous callback to return the result. The event\n     * object written by calling this API is a custom object. To avoid conflicts with system events, you are not advised\n     * to write it to system events (system event name constants defined in Event). The events written by this API can be\n     * subscribed to through (addWatcher).\n     *\n     * @param { AppEventInfo } info Application event object. You are advised to avoid the conflict between the custom\n     * event name and the system event name constant defined in Event.\n     * @param { AsyncCallback<void> } callback Callback used to return the result.\n     * @throws { BusinessError } 401 - Parameter error.\n     * @throws { BusinessError } 11100001 - Function disabled.\n     * @throws { BusinessError } 11101001 - Invalid event domain.\n     * @throws { BusinessError } 11101002 - Invalid event name.\n     * @throws { BusinessError } 11101003 - Invalid number of event parameters.\n     * @throws { BusinessError } 11101004 - Invalid string length of the event parameter.\n     * @throws { BusinessError } 11101005 - Invalid event parameter name.\n     * @throws { BusinessError } 11101006 - Invalid array length of the event parameter.\n     * @static\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @since 9\n     */\n    /**\n     * Writes events of the AppEventInfo type. This API uses an asynchronous callback to return the result. The event\n     * object written by calling this API is a custom object. To avoid conflicts with system events, you are not advised\n     * to write it to system events (system event name constants defined in Event). The events written by this API can be\n     * subscribed to through (addWatcher).\n     *\n     * @param { AppEventInfo } info Application event object. You are advised to avoid the conflict between the custom\n     * event name and the system event name constant defined in Event.\n     * @param { AsyncCallback<void> } callback Callback used to return the result.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types.\n     * @throws { BusinessError } 11100001 - Function disabled.\n     * @throws { BusinessError } 11101001 - Invalid event domain.\n     * @throws { BusinessError } 11101002 - Invalid event name.\n     * @throws { BusinessError } 11101003 - Invalid number of event parameters.\n     * @throws { BusinessError } 11101004 - Invalid string length of the event parameter.\n     * @throws { BusinessError } 11101005 - Invalid event parameter name.\n     * @throws { BusinessError } 11101006 - Invalid array length of the event parameter.\n     * @static\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Writes events of the AppEventInfo type. This API uses an asynchronous callback to return the result. The event\n     * object written by calling this API is a custom object. To avoid conflicts with system events, you are not advised\n     * to write it to system events (system event name constants defined in Event). The events written by this API can be\n     * subscribed to through (addWatcher).\n     *\n     * @param { AppEventInfo } info Application event object. You are advised to avoid the conflict between the custom\n     * event name and the system event name constant defined in Event.\n     * @param { AsyncCallback<void> } callback Callback used to return the result.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types.\n     * @throws { BusinessError } 11100001 - Function disabled.\n     * @throws { BusinessError } 11101001 - Invalid event domain.\n     * @throws { BusinessError } 11101002 - Invalid event name.\n     * @throws { BusinessError } 11101003 - Invalid number of event parameters.\n     * @throws { BusinessError } 11101004 - Invalid string length of the event parameter.\n     * @throws { BusinessError } 11101005 - Invalid event parameter name.\n     * @throws { BusinessError } 11101006 - Invalid array length of the event parameter.\n     * @static\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @crossplatform\n     * @atomicservice\n     * @since 19\n     */\n    function write(info: AppEventInfo, callback: AsyncCallback<void>): void;\n    /**\n     * Type of a custom event parameter value.\n     *\n     * @typedef {number | string | boolean | Array<string>}\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @atomicservice\n     * @since 12\n     */\n    /**\n     * Type of a custom event parameter value.\n     *\n     * @typedef {number | string | boolean | Array<string>}\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @crossplatform\n     * @atomicservice\n     * @since 19\n     */\n    type ParamType = number | string | boolean | Array<string>;\n    /**\n     * Sets custom event parameters. This API uses a promise to return the result. During the same lifecycle, system\n     * events and application events can be associated through event domain and event name. System events only support\n     * crash and freeze events.\n     *\n     * @param { Record<string, ParamType> } params Custom parameter object. The parameter name and value are defined as\n     * follows:\n     * <br>- A parameter name is a string that contains a maximum of 32 characters, including digits (0 to 9), letters\n     * (a to z), underscore (_), and dollar sign ($). It must start with a letter or dollar sign ($) and end with a digit\n     * or letter.\n     * <br>- The parameter value is of the ParamType and contains a maximum of 1024 characters.\n     * <br>- The number of parameters must be less than 64.\n     * @param { string } domain Event domain. The event domain can be associated with application events and system\n     * events (hiAppEvent.domain.OS).\n     * @param { string } name Event name. The default value is an empty string, which indicates all event names in the\n     * associated event domain. The event name can be associated with application events and system events. System events\n     * can be associated only with crash events (hiAppEvent.event.APP_CRASH) and freeze events\n     * (hiAppEvent.event.APP_FREEZE).\n     * @returns { Promise<void> } Promise that returns no value.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types.\n     * @throws { BusinessError } 11101007 - The number of parameter keys exceeds the limit.\n     * @static\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @atomicservice\n     * @since 12\n     */\n    /**\n     * Sets custom event parameters. This API uses a promise to return the result. During the same lifecycle, system\n     * events and application events can be associated through event domain and event name. System events only support\n     * crash and freeze events.\n     *\n     * @param { Record<string, ParamType> } params Custom parameter object. The parameter name and value are defined as\n     * follows:\n     * <br>- A parameter name is a string that contains a maximum of 32 characters, including digits (0 to 9), letters\n     * (a to z), underscore (_), and dollar sign ($). It must start with a letter or dollar sign ($) and end with a digit\n     * or letter.\n     * <br>- The parameter value is of the ParamType and contains a maximum of 1024 characters.\n     * <br>- The number of parameters must be less than 64.\n     * @param { string } domain Event domain. The event domain can be associated with application events and system\n     * events (hiAppEvent.domain.OS).\n     * @param { string } name Event name. The default value is an empty string, which indicates all event names in the\n     * associated event domain. The event name can be associated with application events and system events. System events\n     * can be associated only with crash events (hiAppEvent.event.APP_CRASH) and freeze events\n     * (hiAppEvent.event.APP_FREEZE).\n     * @returns { Promise<void> } Promise that returns no value.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types.\n     * @throws { BusinessError } 11101007 - The number of parameter keys exceeds the limit.\n     * @static\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @crossplatform\n     * @atomicservice\n     * @since 19\n     */\n    function setEventParam(params: Record<string, ParamType>, domain: string, name?: string): Promise<void>;\n    /**\n     * Sets the custom threshold triggering condition for an event. This API uses a promise to return the result. In the\n     * same lifecycle, you can customize the parameters related to the event threshold triggering condition based on the\n     * event name. Currently, only the MAIN_THREAD_JANK event is supported. For details about the parameter configuration,\n     * see Main Thread Jank Event Overview.\n     *\n     * @param { string } name Event name.\n     * @param { Record<string, ParamType> } config Custom parameter object. The parameter name and value are defined as\n     * follows:\n     * <br>- The parameter name contains a maximum of 1024 characters, which is of the string type and cannot be empty.\n     * <br>- The parameter value is of the ParamType and contains a maximum of 1024 characters.\n     * @returns { Promise<void> } Promise used to return the result.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types; 3.Parameter verification failed.\n     * @static\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @atomicservice\n     * @since 15\n     */\n    function setEventConfig(name: string, config: Record<string, ParamType>): Promise<void>;\n    /**\n     * Defines parameters of an AppEventPackage object. This API is used to obtain detail information about an event\n     * package, which is obtained using the takeNext API.\n     *\n     * @interface AppEventPackage\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @since 9\n     */\n    /**\n     * Defines parameters of an AppEventPackage object. This API is used to obtain detail information about an event\n     * package, which is obtained using the takeNext API.\n     *\n     * @interface AppEventPackage\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Defines parameters of an AppEventPackage object. This API is used to obtain detail information about an event\n     * package, which is obtained using the takeNext API.\n     *\n     * @interface AppEventPackage\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @crossplatform\n     * @atomicservice\n     * @since 19\n     */\n    interface AppEventPackage {\n        /**\n         * Event package ID, which is named from 0 in ascending order.\n         *\n         * @type { number }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @since 9\n         */\n        /**\n         * Event package ID, which is named from 0 in ascending order.\n         *\n         * @type { number }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Event package ID, which is named from 0 in ascending order.\n         *\n         * @type { number }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @crossplatform\n         * @atomicservice\n         * @since 19\n         */\n        packageId: number;\n        /**\n         * Number of events in the event package.\n         *\n         * @type { number }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @since 9\n         */\n        /**\n         * Number of events in the event package.\n         *\n         * @type { number }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Number of events in the event package.\n         *\n         * @type { number }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @crossplatform\n         * @atomicservice\n         * @since 19\n         */\n        row: number;\n        /**\n         * Event size of the event package, in bytes.\n         *\n         * @type { number }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @since 9\n         */\n        /**\n         * Event size of the event package, in bytes.\n         *\n         * @type { number }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Event size of the event package, in bytes.\n         *\n         * @type { number }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @crossplatform\n         * @atomicservice\n         * @since 19\n         */\n        size: number;\n        /**\n         * Event data in the event package.\n         *\n         * @type { string[] }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @since 9\n         */\n        /**\n         * Event data in the event package.\n         *\n         * @type { string[] }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Event data in the event package.\n         *\n         * @type { string[] }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @crossplatform\n         * @atomicservice\n         * @since 19\n         */\n        data: string[];\n        /**\n         * Event object group.\n         *\n         * @type { Array<AppEventInfo> }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 12\n         */\n        /**\n         * Event object group.\n         *\n         * @type { Array<AppEventInfo> }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @crossplatform\n         * @atomicservice\n         * @since 19\n         */\n        appEventInfos: Array<AppEventInfo>;\n    }\n    /**\n     * Defines a subscription data holder for processing event information.\n     *\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @since 9\n     */\n    /**\n     * Defines a subscription data holder for processing event information.\n     *\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Defines a subscription data holder for processing event information.\n     *\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @crossplatform\n     * @atomicservice\n     * @since 19\n     */\n    class AppEventPackageHolder {\n        /**\n         * Constructs an AppEventPackageHolder instance. You can call addWatcher to add an event watcher, and then\n         * associate the AppEventPackageHolder instance with the watcher added in the application based on the watcher name.\n         *\n         * @param { string } watcherName Name of the event watcher added through addWatcher. If no watcher is added, no\n         * data is displayed by default.\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @since 9\n         */\n        /**\n         * Constructs an AppEventPackageHolder instance. You can call addWatcher to add an event watcher, and then\n         * associate the AppEventPackageHolder instance with the watcher added in the application based on the watcher name.\n         *\n         * @param { string } watcherName Name of the event watcher added through addWatcher. If no watcher is added, no\n         * data is displayed by default.\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Constructs an AppEventPackageHolder instance. You can call addWatcher to add an event watcher, and then\n         * associate the AppEventPackageHolder instance with the watcher added in the application based on the watcher name.\n         *\n         * @param { string } watcherName Name of the event watcher added through addWatcher. If no watcher is added, no\n         * data is displayed by default.\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @crossplatform\n         * @atomicservice\n         * @since 19\n         */\n        constructor(watcherName: string);\n        /**\n         * Sets the threshold for the data size of the event package obtained each time.\n         *\n         * @param { number } size Data size threshold, in bytes. The value range is [0, $2^{31}$-1]. If the value is out of\n         * the range, an exception is thrown.\n         * @throws { BusinessError } 401 - Parameter error.\n         * @throws { BusinessError } 11104001 - Invalid size value.\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @since 9\n         */\n        /**\n         * Sets the threshold for the data size of the event package obtained each time.\n         *\n         * @param { number } size Data size threshold, in bytes. The value range is [0, $2^{31}$-1]. If the value is out of\n         * the range, an exception is thrown.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 11104001 - Invalid size value.\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Sets the threshold for the data size of the event package obtained each time.\n         *\n         * @param { number } size Data size threshold, in bytes. The value range is [0, $2^{31}$-1]. If the value is out of\n         * the range, an exception is thrown.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 11104001 - Invalid size value.\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @crossplatform\n         * @atomicservice\n         * @since 19\n         */\n        setSize(size: number): void;\n        /**\n         * Sets the number of data records of the event package obtained each time. When setRow() and setSize() are called\n         * at the same time, only setRow() takes effect.\n         *\n         * @param { number } size Number of events. The value range is (0, $2^{31}$-1]. If the value is out of the range, an\n         * exception is thrown.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 11104001 - Invalid size value.\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 12\n         */\n        /**\n         * Sets the number of data records of the event package obtained each time. When setRow() and setSize() are called\n         * at the same time, only setRow() takes effect.\n         *\n         * @param { number } size Number of events. The value range is (0, $2^{31}$-1]. If the value is out of the range, an\n         * exception is thrown.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 11104001 - Invalid size value.\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @crossplatform\n         * @atomicservice\n         * @since 19\n         */\n        setRow(size: number): void;\n        /**\n         * Obtains the subscription event.\n         * <br>The system obtains the subscription event data based on the data size threshold specified by setSize or the\n         * number of data records specified by setRow. By default, one subscription event data record is obtained. When all\n         * subscription event data is obtained, null is returned.\n         * <br>When setRow and setSize are called at the same time, only setRow takes effect.\n         *\n         * @returns { AppEventPackage } Event package object. If all subscription event data has been retrieved, null is\n         * returned.\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @since 9\n         */\n        /**\n         * Obtains the subscription event.\n         * <br>The system obtains the subscription event data based on the data size threshold specified by setSize or the\n         * number of data records specified by setRow. By default, one subscription event data record is obtained. When all\n         * subscription event data is obtained, null is returned.\n         * <br>When setRow and setSize are called at the same time, only setRow takes effect.\n         *\n         * @returns { AppEventPackage } Event package object. If all subscription event data has been retrieved, null is\n         * returned.\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Obtains the subscription event.\n         * <br>The system obtains the subscription event data based on the data size threshold specified by setSize or the\n         * number of data records specified by setRow. By default, one subscription event data record is obtained. When all\n         * subscription event data is obtained, null is returned.\n         * <br>When setRow and setSize are called at the same time, only setRow takes effect.\n         *\n         * @returns { AppEventPackage } Event package object. If all subscription event data has been retrieved, null is\n         * returned.\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @crossplatform\n         * @atomicservice\n         * @since 19\n         */\n        takeNext(): AppEventPackage;\n    }\n    /**\n     * Defines the triggering condition parameters of the onTrigger callback of a Watcher.\n     *\n     * @interface TriggerCondition\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @since 9\n     */\n    /**\n     * Defines the triggering condition parameters of the onTrigger callback of a Watcher.\n     *\n     * @interface TriggerCondition\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Defines the triggering condition parameters of the onTrigger callback of a Watcher.\n     *\n     * @interface TriggerCondition\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @crossplatform\n     * @atomicservice\n     * @since 19\n     */\n    interface TriggerCondition {\n        /**\n         * Total number of events that trigger callback. The value is a positive integer. The default value is 0,\n         * indicating that no callback is triggered. If this parameter is set to a negative value, the default\n         * value is used.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @since 9\n         */\n        /**\n         * Total number of events that trigger callback. The value is a positive integer. The default value is 0,\n         * indicating that no callback is triggered. If this parameter is set to a negative value, the default\n         * value is used.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Total number of events that trigger callback. The value is a positive integer. The default value is 0,\n         * indicating that no callback is triggered. If this parameter is set to a negative value, the default\n         * value is used.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @crossplatform\n         * @atomicservice\n         * @since 19\n         */\n        row?: number;\n        /**\n         * Total size of events that trigger callback. The value is a positive integer, in bytes. The default value is 0,\n         * indicating that no callback is triggered. If this parameter is set to a negative value, the default value is\n         * used.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @since 9\n         */\n        /**\n         * Total size of events that trigger callback. The value is a positive integer, in bytes. The default value is 0,\n         * indicating that no callback is triggered. If this parameter is set to a negative value, the default value is\n         * used.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Total size of events that trigger callback. The value is a positive integer, in bytes. The default value is 0,\n         * indicating that no callback is triggered. If this parameter is set to a negative value, the default value is\n         * used.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @crossplatform\n         * @atomicservice\n         * @since 19\n         */\n        size?: number;\n        /**\n         * Timeout interval for triggering callback. The value is a positive integer, in unit of 30s. The default value is\n         * 0, indicating that no callback is triggered. If this parameter is set to a negative value, the default value is\n         * used.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @since 9\n         */\n        /**\n         * Timeout interval for triggering callback. The value is a positive integer, in unit of 30s. The default value is\n         * 0, indicating that no callback is triggered. If this parameter is set to a negative value, the default value is\n         * used.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Timeout interval for triggering callback. The value is a positive integer, in unit of 30s. The default value is\n         * 0, indicating that no callback is triggered. If this parameter is set to a negative value, the default value is\n         * used.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @crossplatform\n         * @atomicservice\n         * @since 19\n         */\n        timeOut?: number;\n    }\n    /**\n     * Defines parameters of subscription filtering conditions of a Watcher. This API is used to set event filtering\n     * conditions in the event watcher to ensure that only the events that meet the filtering conditions are subscribed\n     * to.\n     *\n     * @interface AppEventFilter\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @since 9\n     */\n    /**\n     * Defines parameters of subscription filtering conditions of a Watcher. This API is used to set event filtering\n     * conditions in the event watcher to ensure that only the events that meet the filtering conditions are subscribed\n     * to.\n     *\n     * @interface AppEventFilter\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Defines parameters of subscription filtering conditions of a Watcher. This API is used to set event filtering\n     * conditions in the event watcher to ensure that only the events that meet the filtering conditions are subscribed\n     * to.\n     *\n     * @interface AppEventFilter\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @crossplatform\n     * @atomicservice\n     * @since 19\n     */\n    interface AppEventFilter {\n        /**\n         * Event domain, which can be the system event domain (hiAppEvent.domain.OS) or the event domain of the custom\n         * event information (AppEventInfo) passed through the Write API.\n         *\n         * @type { string }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @since 9\n         */\n        /**\n         * Event domain, which can be the system event domain (hiAppEvent.domain.OS) or the event domain of the custom\n         * event information (AppEventInfo) passed through the Write API.\n         *\n         * @type { string }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Event domain, which can be the system event domain (hiAppEvent.domain.OS) or the event domain of the custom\n         * event information (AppEventInfo) passed through the Write API.\n         *\n         * @type { string }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @crossplatform\n         * @atomicservice\n         * @since 19\n         */\n        domain: string;\n        /**\n         * Event types. If this parameter is not set, events are not filtered by default.\n         *\n         * @type { ?EventType[] }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @since 9\n         */\n        /**\n         * Event types. If this parameter is not set, events are not filtered by default.\n         *\n         * @type { ?EventType[] }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Event types. If this parameter is not set, events are not filtered by default.\n         *\n         * @type { ?EventType[] }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @crossplatform\n         * @atomicservice\n         * @since 19\n         */\n        eventTypes?: EventType[];\n        /**\n         * Names of the events to be subscribed. If this parameter is not set, events are not filtered by default.\n         *\n         * @type { ?string[] }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Names of the events to be subscribed. If this parameter is not set, events are not filtered by default.\n         *\n         * @type { ?string[] }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @crossplatform\n         * @atomicservice\n         * @since 19\n         */\n        names?: string[];\n    }\n    /**\n     * Defines parameters of the event group returned by a subscription. This API can be used to obtain detail\n     * information about an event group, which is often used in the onReceive callback of Watcher.\n     *\n     * @interface AppEventGroup\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Defines parameters of the event group returned by a subscription. This API can be used to obtain detail\n     * information about an event group, which is often used in the onReceive callback of Watcher.\n     *\n     * @interface AppEventGroup\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @crossplatform\n     * @atomicservice\n     * @since 19\n     */\n    interface AppEventGroup {\n        /**\n         * Event name.\n         *\n         * @type { string }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Event name.\n         *\n         * @type { string }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @crossplatform\n         * @atomicservice\n         * @since 19\n         */\n        name: string;\n        /**\n         * Event object group.\n         *\n         * @type { Array<AppEventInfo> }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Event object group.\n         *\n         * @type { Array<AppEventInfo> }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @crossplatform\n         * @atomicservice\n         * @since 19\n         */\n        appEventInfos: Array<AppEventInfo>;\n    }\n    /**\n     * Defines parameters for a Watcher object. This API is used to configure and manage event watchers to subscribe to\n     * and process specified events.\n     *\n     * @interface Watcher\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @since 9\n     */\n    /**\n     * Defines parameters for a Watcher object. This API is used to configure and manage event watchers to subscribe to\n     * and process specified events.\n     *\n     * @interface Watcher\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Defines parameters for a Watcher object. This API is used to configure and manage event watchers to subscribe to\n     * and process specified events.\n     *\n     * @interface Watcher\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @crossplatform\n     * @atomicservice\n     * @since 19\n     */\n    interface Watcher {\n        /**\n         * Unique name of a watcher. The value contains a maximum of 32 characters, including digits (0 to 9), letters\n         * (a to z), underscore (_). It must start with a letter and end with a digit or letter. For example, testName1\n         * and crash_Watcher.\n         *\n         * @type { string }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @since 9\n         */\n        /**\n         * Unique name of a watcher. The value contains a maximum of 32 characters, including digits (0 to 9), letters\n         * (a to z), underscore (_). It must start with a letter and end with a digit or letter. For example, testName1\n         * and crash_Watcher.\n         *\n         * @type { string }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Unique name of a watcher. The value contains a maximum of 32 characters, including digits (0 to 9), letters\n         * (a to z), underscore (_). It must start with a letter and end with a digit or letter. For example, testName1\n         * and crash_Watcher.\n         *\n         * @type { string }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @crossplatform\n         * @atomicservice\n         * @since 19\n         */\n        name: string;\n        /**\n         * Subscription callback triggering condition. This parameter takes effect only when it is passed together with\n         * onTrigger. If this parameter is not set, the onTrigger callback is not triggered by default.\n         *\n         * @type { ?TriggerCondition }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @since 9\n         */\n        /**\n         * Subscription callback triggering condition. This parameter takes effect only when it is passed together with\n         * onTrigger. If this parameter is not set, the onTrigger callback is not triggered by default.\n         *\n         * @type { ?TriggerCondition }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Subscription callback triggering condition. This parameter takes effect only when it is passed together with\n         * onTrigger. If this parameter is not set, the onTrigger callback is not triggered by default.\n         *\n         * @type { ?TriggerCondition }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @crossplatform\n         * @atomicservice\n         * @since 19\n         */\n        triggerCondition?: TriggerCondition;\n        /**\n         * Subscription filtering condition. This parameter is passed only when subscription events need to be filtered.\n         * If this parameter is not set, events are not filtered by default.\n         *\n         * @type { ?AppEventFilter[] }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @since 9\n         */\n        /**\n         * Subscription filtering condition. This parameter is passed only when subscription events need to be filtered.\n         * If this parameter is not set, events are not filtered by default.\n         *\n         * @type { ?AppEventFilter[] }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Subscription filtering condition. This parameter is passed only when subscription events need to be filtered.\n         * If this parameter is not set, events are not filtered by default.\n         *\n         * @type { ?AppEventFilter[] }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @crossplatform\n         * @atomicservice\n         * @since 19\n         */\n        appEventFilters?: AppEventFilter[];\n        /**\n         * Subscription callback. This parameter takes effect only when it is passed together with triggerCondition.\n         * The input arguments are described as follows:\n         * <br>curRow: total number of subscription events when the callback is triggered.\n         * <br>curSize: total size of subscribed events when the callback is triggered, in bytes.\n         * <br>holder: subscription data holder, which can be used to process subscribed events.\n         *\n         * @type { ?function }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @since 9\n         */\n        /**\n         * Subscription callback. This parameter takes effect only when it is passed together with triggerCondition.\n         * The input arguments are described as follows:\n         * <br>curRow: total number of subscription events when the callback is triggered.\n         * <br>curSize: total size of subscribed events when the callback is triggered, in bytes.\n         * <br>holder: subscription data holder, which can be used to process subscribed events.\n         *\n         * @type { ?function }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Subscription callback. This parameter takes effect only when it is passed together with triggerCondition.\n         * The input arguments are described as follows:\n         * <br>curRow: total number of subscription events when the callback is triggered.\n         * <br>curSize: total size of subscribed events when the callback is triggered, in bytes.\n         * <br>holder: subscription data holder, which can be used to process subscribed events.\n         *\n         * @type { ?function }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @crossplatform\n         * @atomicservice\n         * @since 19\n         */\n        onTrigger?: (curRow: number, curSize: number, holder: AppEventPackageHolder) => void;\n        /**\n         * Real-time subscription callback. Only this callback function is triggered if it is passed together with\n         * onTrigger. The input arguments are described as follows:\n         * <br>domain: domain name.\n         * <br>appEventGroups: event group.\n         *\n         * @type { ?function }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Real-time subscription callback. Only this callback function is triggered if it is passed together with\n         * onTrigger. The input arguments are described as follows:\n         * <br>domain: domain name.\n         * <br>appEventGroups: event group.\n         *\n         * @type { ?function }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @crossplatform\n         * @atomicservice\n         * @since 19\n         */\n        onReceive?: (domain: string, appEventGroups: Array<AppEventGroup>) => void;\n    }\n    /**\n     * Adds an event watcher. You can use the callback of the event watcher to subscribe to events.\n     *\n     * @param { Watcher } watcher Event watcher.\n     * @returns { AppEventPackageHolder } Subscription data holder. If the subscription fails, null is returned.\n     * @throws { BusinessError } 401 - Parameter error.\n     * @throws { BusinessError } 11102001 - Invalid watcher name.\n     * @throws { BusinessError } 11102002 - Invalid filtering event domain.\n     * @throws { BusinessError } 11102003 - Invalid row value.\n     * @throws { BusinessError } 11102004 - Invalid size value.\n     * @throws { BusinessError } 11102005 - Invalid timeout value.\n     * @static\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @since 9\n     */\n    /**\n     * Adds an event watcher. You can use the callback of the event watcher to subscribe to events.\n     *\n     * @param { Watcher } watcher Event watcher.\n     * @returns { AppEventPackageHolder } Subscription data holder. If the subscription fails, null is returned.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types.\n     * @throws { BusinessError } 11102001 - Invalid watcher name.\n     * @throws { BusinessError } 11102002 - Invalid filtering event domain.\n     * @throws { BusinessError } 11102003 - Invalid row value.\n     * @throws { BusinessError } 11102004 - Invalid size value.\n     * @throws { BusinessError } 11102005 - Invalid timeout value.\n     * @static\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Adds an event watcher. You can use the callback of the event watcher to subscribe to events.\n     *\n     * @param { Watcher } watcher Event watcher.\n     * @returns { AppEventPackageHolder } Subscription data holder. If the subscription fails, null is returned.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types.\n     * @throws { BusinessError } 11102001 - Invalid watcher name.\n     * @throws { BusinessError } 11102002 - Invalid filtering event domain.\n     * @throws { BusinessError } 11102003 - Invalid row value.\n     * @throws { BusinessError } 11102004 - Invalid size value.\n     * @throws { BusinessError } 11102005 - Invalid timeout value.\n     * @static\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @crossplatform\n     * @atomicservice\n     * @since 19\n     */\n    function addWatcher(watcher: Watcher): AppEventPackageHolder;\n    /**\n     * Removes an event watcher.\n     *\n     * @param { Watcher } watcher Event watcher.\n     * @throws { BusinessError } 401 - Parameter error.\n     * @throws { BusinessError } 11102001 - Invalid watcher name.\n     * @static\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @since 9\n     */\n    /**\n     * Removes an event watcher.\n     *\n     * @param { Watcher } watcher Event watcher.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types.\n     * @throws { BusinessError } 11102001 - Invalid watcher name.\n     * @static\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Removes an event watcher.\n     *\n     * @param { Watcher } watcher Event watcher.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types.\n     * @throws { BusinessError } 11102001 - Invalid watcher name.\n     * @static\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @crossplatform\n     * @atomicservice\n     * @since 19\n     */\n    function removeWatcher(watcher: Watcher): void;\n    /**\n     * Clears local logging data of the application.\n     *\n     * @static\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @since 9\n     */\n    /**\n     * Clears local logging data of the application.\n     *\n     * @static\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Clears local logging data of the application.\n     *\n     * @static\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @crossplatform\n     * @atomicservice\n     * @since 19\n     */\n    function clearData(): void;\n    /**\n     * Sets a user ID, which is used for association when a Processor is configured.\n     *\n     * @param { string } name Key of a user ID. The value is string that contains a maximum of 256 characters, including\n     * digits (0 to 9), letters (a to z), underscore (_), and dollar sign ($). It must not start with a digit.\n     * @param { string } value Value of a user ID. It can contain a maximum of 256 characters. If the value is null or\n     * left empty, the user ID is cleared.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types.\n     * @static\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Sets a user ID, which is used for association when a Processor is configured.\n     *\n     * @param { string } name Key of a user ID. The value is string that contains a maximum of 256 characters, including\n     * digits (0 to 9), letters (a to z), underscore (_), and dollar sign ($). It must not start with a digit.\n     * @param { string } value Value of a user ID. It can contain a maximum of 256 characters. If the value is null or\n     * left empty, the user ID is cleared.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types.\n     * @static\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @crossplatform\n     * @atomicservice\n     * @since 19\n     */\n    function setUserId(name: string, value: string): void;\n    /**\n     * Obtains the value set through setUserId.\n     *\n     * @param { string } name Key of a user ID. The value is string that contains a maximum of 256 characters, including\n     * digits (0 to 9), letters (a to z), underscore (_), and dollar sign ($). It must not start with a digit.\n     * @returns { string } Value of a user ID. If no user ID is found, an empty string is returned.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types.\n     * @static\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Obtains the value set through setUserId.\n     *\n     * @param { string } name Key of a user ID. The value is string that contains a maximum of 256 characters, including\n     * digits (0 to 9), letters (a to z), underscore (_), and dollar sign ($). It must not start with a digit.\n     * @returns { string } Value of a user ID. If no user ID is found, an empty string is returned.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types.\n     * @static\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @crossplatform\n     * @atomicservice\n     * @since 19\n     */\n    function getUserId(name: string): string;\n    /**\n     * Sets a user property, which is used for association when a Processor is configured.\n     *\n     * @param { string } name Key of a user property. The value is string that contains a maximum of 256 characters,\n     * including digits (0 to 9), letters (a to z), underscore (_), and dollar sign ($). It must not start with a digit.\n     * @param { string } value Value of a user property. It can contain a maximum of 1024 characters. If the value is\n     * null or left empty, the user property is cleared.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types.\n     * @static\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Sets a user property, which is used for association when a Processor is configured.\n     *\n     * @param { string } name Key of a user property. The value is string that contains a maximum of 256 characters,\n     * including digits (0 to 9), letters (a to z), underscore (_), and dollar sign ($). It must not start with a digit.\n     * @param { string } value Value of a user property. It can contain a maximum of 1024 characters. If the value is\n     * null or left empty, the user property is cleared.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types.\n     * @static\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @crossplatform\n     * @atomicservice\n     * @since 19\n     */\n    function setUserProperty(name: string, value: string): void;\n    /**\n     * Obtains the value set through setUserProperty.\n     *\n     * @param { string } name Key of a user property. The value is string that contains a maximum of 256 characters,\n     * including digits (0 to 9), letters (a to z), underscore (_), and dollar sign ($). It must not start with a digit.\n     * @returns { string } Value of a user property. If no user ID is found, an empty string is returned.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types.\n     * @static\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Obtains the value set through setUserProperty.\n     *\n     * @param { string } name Key of a user property. The value is string that contains a maximum of 256 characters,\n     * including digits (0 to 9), letters (a to z), underscore (_), and dollar sign ($). It must not start with a digit.\n     * @returns { string } Value of a user property. If no user ID is found, an empty string is returned.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types.\n     * @static\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @crossplatform\n     * @atomicservice\n     * @since 19\n     */\n    function getUserProperty(name: string): string;\n    /**\n     * Event description configuration that can be reported by the data processor\n     *\n     * @interface AppEventReportConfig\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @atomicservice\n     * @since 11\n     */\n    interface AppEventReportConfig {\n        /**\n         * Event domain. The value is a string that contains a maximum of 32 characters, including digits (0 to 9), letters\n         * (a to z), and underscore (_). It must start with a letter and cannot end with an underscore (_). The default\n         * value is an empty string.\n         *\n         * @type { ?string }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 11\n         */\n        domain?: string;\n        /**\n         * Event name. The value is string that contains a maximum of 48 characters, including digits (0 to 9), letters\n         * (a to z), underscore (_), and dollar sign ($). It must start with a letter or dollar sign ($) and end with a\n         * digit or letter. The default value is an empty string.\n         *\n         * @type { ?string }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 11\n         */\n        name?: string;\n        /**\n         * Whether to report events in real time. The value true indicates that events are reported in real time, and the\n         * value false indicates the opposite. The default value is false.\n         *\n         * @type { ?boolean }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 11\n         */\n        isRealTime?: boolean;\n    }\n    /**\n     * Defines a data processor for reporting and managing events. You can customize processor configurations as required.\n     *\n     * @interface Processor\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @atomicservice\n     * @since 11\n     */\n    interface Processor {\n        /**\n         * Name of a data processor. The value is string that contains a maximum of 256 characters, including digits (0 to\n         * 9), letters (a to z), underscore (_), and dollar sign ($). It must not start with a digit.\n         *\n         * @type { string }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 11\n         */\n        name: string;\n        /**\n         * Whether to enable the debug mode. The default value is false. The value true means to enable the debugging mode,\n         * and the value false means the opposite.\n         *\n         * @type { ?boolean }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 11\n         */\n        debugMode?: boolean;\n        /**\n         * Server location information. It is left empty by default. The length of the input string cannot exceed 8 KB. If\n         * the length exceeds 8 KB, the default value is used.\n         *\n         * @type { ?string }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 11\n         */\n        routeInfo?: string;\n        /**\n         * Application ID. It is left empty by default. The length of the input string cannot exceed 8 KB. If the length\n         * exceeds 8 KB, the default value is used.\n         *\n         * @type { ?string }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 11\n         */\n        appId?: string;\n        /**\n         * Whether to report an event when the data processor starts. The default value is false. The value true means to\n         * report events, and the value false means the opposite.\n         *\n         * @type { ?boolean }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 11\n         */\n        onStartReport?: boolean;\n        /**\n         * Whether to report an event when an application switches to the background. The default value is false. The value\n         * true means to report events, and the value false means the opposite.\n         *\n         * @type { ?boolean }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 11\n         */\n        onBackgroundReport?: boolean;\n        /**\n         * Interval for event reporting, in seconds. The input value must be greater than or equal to 0. If the input value\n         * is less than 0, the default value 0 is used and periodic reporting is not performed.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 11\n         */\n        periodReport?: number;\n        /**\n         * Event reporting threshold. When the number of events reaches the threshold, an event is reported. The value must\n         * be greater than 0 and less than 1000. If the value is not within the range, the default value 0 is used and no\n         * events are reported.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 11\n         */\n        batchReport?: number;\n        /**\n         * Name array of user IDs that can be reported by the data processor. name corresponds to the name parameter of the\n         * setUserId API. The default value is an empty array.\n         *\n         * @type { ?string[] }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 11\n         */\n        userIds?: string[];\n        /**\n         * Name array of user properties that can be reported by the data processor. name corresponds to the name parameter\n         * of the setUserProperty API. The default value is an empty array.\n         *\n         * @type { ?string[] }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 11\n         */\n        userProperties?: string[];\n        /**\n         * Event description configuration array that can be reported by the data processor. The default value is an empty\n         * array.\n         *\n         * @type { ?AppEventReportConfig[] }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 11\n         */\n        eventConfigs?: AppEventReportConfig[];\n        /**\n         * Configuration ID for data processor. The input value must be greater than or equal to 0. If the input value is\n         * less than 0, the default value 0 is used. If the input value is greater than 0, the value uniquely identifies a\n         * data processor with its name.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 12\n         */\n        configId?: number;\n        /**\n         * Custom extended parameters. If the input parameter name and value do not meet the specifications, extended\n         * parameters are not configured by default. The specifications are as follows:\n         * <br>- A parameter name is a string that contains a maximum of 32 characters, including digits (0 to 9), letters\n         * (a to z), underscore (_), and dollar sign ($). It must start with a letter or dollar sign ($) and end with a\n         * digit or letter.\n         * <br>- A parameter value is a string contains a maximum of 1024 characters.\n         * <br>- The number of parameters must be less than 32.\n         *\n         * @type { ?Record<string, string> }\n         * @syscap SystemCapability.HiviewDFX.HiAppEvent\n         * @atomicservice\n         * @since 12\n         */\n        customConfigs?: Record<string, string>;\n    }\n    /**\n     * Adds a data processor to migrate event data to the cloud. You can preset the implementation of the processor on\n     * the device and set its properties based on its constraints.\n     * <br>The configuration information of Processor must be provided by the data processor. Yet, as no data processor\n     * is preset in the device for interaction for the moment, migrating events to the cloud is unavailable.\n     *\n     * @param { Processor } processor Data processor.\n     * @returns { number }  ID of the data processor of the reported event, which uniquely identifies the data processor\n     * and can be used to remove the data processor. If the operation fails, -1 is returned. If the operation is\n     * successful, a value greater than 0 is returned.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types.\n     * @static\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @atomicservice\n     * @since 11\n     */\n    function addProcessor(processor: Processor): number;\n    /**\n     * Removes the data processor of a reported event.\n     *\n     * @param { number } id ID of a data processor. The value must be greater than 0. The value is obtained by calling\n     * addProcessor.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br>2. Incorrect parameter types.\n     * @static\n     * @syscap SystemCapability.HiviewDFX.HiAppEvent\n     * @atomicservice\n     * @since 11\n     */\n    function removeProcessor(id: number): void;\n}\nexport default hiAppEvent;\n",
}
export default FILE;